package entity

import (
	"time"

	"shqsoft.cn/pasnj/base"
)

//IndiAccoDivi 个人存款未认定信息
type IndiAccoDivi struct {
	ID            int        `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	ParentOrganID int        `gorm:"column:ParentOrganID"`
	OrganID       int        `gorm:"column:OrganID"`
	Zhanghao      string     `gorm:"column:帐号;size:20"`
	Khao          string     `gorm:"column:卡号"`
	Gxbm          string     `gorm:"column:管辖部门"`
	Khwd          string     `gorm:"column:开户网点"`
	Khr           *time.Time `gorm:"column:开户日;type:date;"`
	Khmc          string     `gorm:"column:客户名称;size:20"`
	Bizhong       string     `gorm:"column:币种;size:20"`
	Qxr           time.Time  `gorm:"column:起息日;type:date;"`
	Dqr           time.Time  `gorm:"column:到期日;type:date;"`
	Dqye          float64    `gorm:"column:当前余额;"`
	Sfzh          string     `gorm:"column:身份证号;size:20"`
	Ccly          string     `gorm:"column:执行利率;size:20"`
	Lxfs          string     `gorm:"column:联系方式;size:20"`
}

//TableName 个人存款未认定信息表名
func (IndiAccoDivi) TableName() string {
	return "V_对私_未认定客户信息"

}

//IndiAccoDiviEF 个人存款未认定信息返回一个结构体
func IndiAccoDiviEF() base.EntityFunc {
	return func() interface{} {
		entity := IndiAccoDivi{}
		return &entity
	}
}

//IndiAccoDiviESF 返回一个结构体数组
func IndiAccoDiviESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []IndiAccoDivi
		return &entities
	}
}
func init() {
	dao := base.NewDefaultDao(IndiAccoDiviEF(), IndiAccoDiviESF(), nil)
	base.DaoPoolObj.Put("IndiAccoDivi", dao)
}
